import request from '@/utils/request'

// 查询入伍（队）地列表
export function listEnlistIandIfm(query) {
  return request({
    url: '/enlistIand/EnlistIandIfm/list',
    method: 'get',
    params: query
  })
}

// 查询入伍（队）地详细
export function getEnlistIandIfm(iandId) {
  return request({
    url: '/enlistIand/EnlistIandIfm/' + iandId,
    method: 'get'
  })
}

// 新增入伍（队）地
export function addEnlistIandIfm(data) {
  return request({
    url: '/enlistIand/EnlistIandIfm',
    method: 'post',
    data: data
  })
}

// 修改入伍（队）地
export function updateEnlistIandIfm(data) {
  return request({
    url: '/enlistIand/EnlistIandIfm',
    method: 'put',
    data: data
  })
}

// 删除入伍（队）地
export function delEnlistIandIfm(iandId) {
  return request({
    url: '/enlistIand/EnlistIandIfm/' + iandId,
    method: 'delete'
  })
}
